package com.anpy.security.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author jxt
 * @description swagger配置
 * @date 2025/03/10
 */
@Configuration
public class SwaggerConfig {

    @Value("${knife4j.enable:true}")
    private Boolean enable;

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("安全系统服务")
                        .description("安全系统服务接口文档")
                        .version("1.0")
                        .contact(new Contact()
                                .name("爱家校")
                                .url("https://www.joinuscn.com/")
                                .email("ijx@967111.com")));
    }
}